package com.itheima.dao;

import com.itheima.domain.Permission;
import com.itheima.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao {
    public List<Role> findRoleByUserId(String id);

    List<Role> findAll();

    int save(Role role);

    Role findById(String id);

    List<Permission> findRoleNotPermission(String id);

    int addPermissionToRole(@Param("roleId") String roleId, @Param("id") String id);
}
